namespace Billing2
{
    using System;
    using System.Web.UI;
    using System.Web.UI.WebControls;

    public class ucHighlight : UserControl
    {
        protected Label lblErrMessage;
        protected Label lblMessage;
        protected Panel Panel1;
        protected Panel Panel2;
        protected UpdatePanel updatepanel;

        public void ClearMessage()
        {
            this.Message = "";
            this.ErrorMessage = "";
        }

        public void CloseAll()
        {
            this.Panel1.Visible = false;
            this.Panel2.Visible = false;
            this.lblErrMessage.Text = "";
            this.lblMessage.Text = "";
        }

        protected void Page_Load(object sender, EventArgs e)
        {
        }

        public string ErrorMessage
        {
            get
            {
                return this.lblErrMessage.Text;
            }
            set
            {
                this.lblErrMessage.Text = Microsoft.Security.Application.Sanitizer.GetSafeHtmlFragment(value);
                this.Panel1.Visible = false;
                this.Panel2.Visible = true;
            }
        }

        public string Message
        {
            get
            {
                return this.lblMessage.Text;
            }
            set
            {
                this.lblMessage.Text = Microsoft.Security.Application.Sanitizer.GetSafeHtmlFragment(value);
                this.Panel1.Visible = true;
                this.Panel2.Visible = false;
            }
        }
    }
}
